const { http } = uni.$u
// 获取菜单

export const http_mpWeixinLogin = (params, config = {}) => http.post('/addons/zzyy/api.login/mpWeixinLogin', params, config)
export const http_mpWeixinRegisterByProfileAndLogin = (params, config = {}) => http.post('/addons/zzyy/api.login/mpWeixinRegisterByProfileAndLogin', params, config)
export const http_logout = (params, config = {}) => http.post('/api/user/logout', params, config)
export const http_getUserInfo = (params = {}) => http.get('/addons/zzyy/api.user/getUserInfo', params)
export const http_getUserPhoneFromMP = (params, config = {}) => http.post('/addons/zzyy/api.user/mpWeixinDecodePhone', params, config)
export const http_setUserInfo = (params, config = {}) => http.post('/api/user/saveUserInfo', params, config)
